package draw;

import pulpfizz.pulp.body.Java2DSprite;
import pulpfizz.pulp.body.PhysicsLayer;
import pulpcore.Stage;
import pulpcore.animation.Property;
import org.jbox2d.common.Vec2;
import goliath.BasicDemo;
import edit.EditContext;

/**
 * Specifies a typical drawing context that begins at the current mouse position.
 * @author will
 * @date Aug 9, 2008 9:26:03 PM
 */
public abstract class DrawSprite extends Java2DSprite {
    Vec2 startVec = new Vec2();
    PhysicsLayer layer = BasicDemo.getPhysics();
    EditContext ed;

    public DrawSprite(EditContext ed) {
        super(0,0, Stage.getWidth(),Stage.getHeight(),true);
        this.ed = ed;
        this.startVec.set(ed.mousePos);
    }

    protected boolean needsRedraw() {
        return true;
    }

}
